Namespaces

Classes

Text field that responds to user input with autocomplete suggestions (optionally via an ajax request).

Single boolean checkbox.

A set of multiple checkboxes which submits as an array of the checked values.

Color picker field which submits a 6-character hex code with the hash mark.

Abstract content field for rendering content.

Content field which renders HTML using wp_kses_post().

Content field which renders Markdown using the Parsedown library.

Content field which renders escaped plaintext.

Base class for contexts.

Use fieldmanager to ad custom fields to a menu item.

Use Fieldmanager on the public-facing theme.

Use fieldmanager to create meta boxes on the new/edit post screen and save data primarily to post meta.

Use fieldmanager to add fields to the "quick edit" (post list inline editing) and save data primarily to post meta.

Base class for contexts that store data.

Use fieldmanager to create arbitrary pages in the WordPress admin and save data primarily to options.

Use fieldmanager to create meta boxes on the new/edit term screens and save data primarily to term meta.

Use fieldmanager on the user profile screen and save data primarily to user meta.

Datasource base class to populate autocomplete and option fields.

Datasource to populate autocomplete and option fields with WordPress Posts.

Datasource to populate autocomplete and option fields with WordPress terms.

Datasource to populate autocomplete and option fields with WordPress Users.

A JavaScript date-picker which submits dates as Unix timestamps.

An interface for dragging posts from a repository to assorted buckets.

Abstract base class containing core functionality for Fieldmanager fields.

Fieldmanager_Grid deprecated

Data grid (spreadsheet) field.

Define a groups of fields.

Hidden input field.

Link (url) field

A field to select an attachment via the WordPress Media Manager.

Abstract base class for handling option fields, like select elements, checkboxes or radios.

Text field which hides the user input.

A collection of multiple radio button fields.

WordPress visual editor (TinyMCE) which submits HTML.

Select dropdown or multi-select field.

Multi-line text field.

Single-line text field.

Asset management.

Use Fieldmanager to store meta data for taxonomy terms.

Framework for user-facing data validation.

Functions

mixed
_fieldmanager_registry(string $var, mixed $val = null)

Get or set values from a simple, static registry.

_fm_add_submenus()

Register submenu pages from the Fieldmanager registry.

_fm_submenu_render()

Render a submenu page registered through the Fieldmanager registry.

string
fieldmanager_get_baseurl()

Get the Fieldmanager base URL.

string
fieldmanager_get_template(string $tpl_slug)

Get the path to a field template.

mixed
fieldmanager_load_class(string $class)

Load a Fieldmanager class based on a class name.

fieldmanager_load_file(string $file)

Load a Fieldmanager file.

fieldmanager_set_baseurl(string $path)

Tell Fieldmanager that it has a base URL somewhere other than the plugins URL.

object
fieldmanager_util_term_meta()
deprecated

Singleton helper for Fieldmanager_Util_Term_Meta

object
fieldmanager_util_validation(string $form_id, string $context)

Singleton helper for Fieldmanager_Util_Validation.

fm_add_script(string $handle, string|bool $path = false, array $deps = array(), string|bool $ver = false, bool $in_footer = false, string $data_object = '', array $data = array(), string $plugin_dir = '', bool $admin = true)

Enqueue a script, optionally localizing data to it.

fm_add_style(string $handle, string|bool $path = false, array $deps = array(), string|bool $ver = false, string $media = 'all', bool $admin = true)

Register and enqueue a style.

mixed
fm_add_term_meta(int $term_id, string $taxonomy, string $meta_key, mixed $meta_value, bool $unique = false)
deprecated

Shortcut helper for Fieldmanager_Util_Term_Meta::add_term_meta().

array
fm_calculate_context()

Calculate contextual information for the current request.

bool
fm_delete_term_meta(int $term_id, string $taxonomy, string $meta_key, string $meta_value = '')
deprecated

Shortcut helper for Fieldmanager_Util_Term_Meta::delete_term_meta().

array
fm_get_context(bool $recalculate = false)

Get the context for triggers and pattern matching.

mixed
fm_get_term_meta(int $term_id, string $taxonomy, string $meta_key = '', bool $single = false)
deprecated

Shortcut helper for Fieldmanager_Util_Term_Meta::get_term_meta().

array
fm_localize_context(array $scripts)
Since: 1.3.0

Add the Fieldmanager context to the global FM JavaScript object.

bool
fm_match_context(string $context, string|array $type = null)

Check whether a context is active.

fm_page_form_did_save(string $uniqid)

Check to see if the form saved (useful for error messages).

fm_register_submenu_page(string $group_name, string $parent_slug, string $page_title, string $menu_title = null, string $capability = 'manage_options', string $menu_slug = null)

Add data about a submenu page to the Fieldmanager registry under a slug.

string
fm_sanitize_textarea(string $value)

Sanitize multi-line text.

fm_the_page_form(string $uniqid)

Template tag to output a form by unique ID.

fm_trigger_context_action()

Fire an action for the current Fieldmanager context, if it exists.

mixed
fm_update_term_meta(int $term_id, string $taxonomy, string $meta_key, mixed $meta_value, string $meta_prev_value = '')
deprecated

Shortcut helper for Fieldmanager_Util_Term_Meta::update_term_meta().

int|bool
fm_url_to_post_id(string $url)

Post URLs to IDs function, supports custom post types.

Exceptions

Exception class for classes that could not be loaded.

Exception class for Fieldmanager's developer errors.

Exception class for duplicate submenu names.

Exception class for Fieldmanager's fatal errors.

Exception class for uninitialized submenus.

Exception class for Fieldmanager's validation errors.